﻿using System;
using System.Net.Http.Formatting;
using System.Web.Http;

namespace Calico.Server
{
	public class Global : System.Web.HttpApplication
	{

		protected void Application_Start(object sender, EventArgs e)
		{
			// Register Web Api Config
			GlobalConfiguration.Configure(WebApiConfig.Register);

			// Set JSON as the only formatter - Json already added by default
			GlobalConfiguration.Configuration.Formatters.Remove(GlobalConfiguration.Configuration.Formatters.XmlFormatter);
		}

	}
}